Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 2f5474a1532d90efc9b8d0aeaee9fdf8e9782924


Parents : cacd1f6
Author : Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2026-06-03T07:43:32-05:00

feat(ci): add Rust x86_64-apple-darwin target installation for macOS builds

Changes

3 files changed, 37 insertions(+), 0 deletions(-)


Diff

diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml
index ebc68719..f2c32474 100644
--- a/.github/workflows/build-release.yml
+++ b/.github/workflows/build-release.yml
@@ -475,6 +475,10 @@ jobs:
exit 1
fi
+ - name: Install Rust x86_64-apple-darwin target (cbor2 x64 slice)
+ if: matrix.label == 'macos'
+ run: bash scripts/ci/github-macos-rust-x64-target.sh
+
- name: Install project deps into x64 Python (mac universal cx_Freeze)
if: matrix.label == 'macos'
env:

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index a8d2d10d..dc4c8be3 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -121,6 +121,10 @@ jobs:
set -euo pipefail
arch -x86_64 /usr/local/bin/brew install codec2
+ - name: Install Rust x86_64-apple-darwin target (cbor2 x64 slice)
+ if: matrix.label == 'macos'
+ run: bash scripts/ci/github-macos-rust-x64-target.sh
+
- name: Install project deps into x64 Python (mac universal cx_Freeze)
if: matrix.label == 'macos'
env:

diff --git a/scripts/ci/github-macos-rust-x64-target.sh b/scripts/ci/github-macos-rust-x64-target.sh
new file mode 100755
index 00000000..a9bb6a46
--- /dev/null
+++ b/scripts/ci/github-macos-rust-x64-target.sh
@@ -0,0 +1,29 @@
+#!/usr/bin/env bash
+# Rust cross-target for x86_64 macOS wheels built on Apple Silicon CI runners.
+set -euo pipefail
+
+if [[ "$(uname -s)" != "Darwin" ]]; then
+ exit 0
+fi
+
+if ! command -v rustup >/dev/null 2>&1; then
+ echo "Installing rustup (minimal stable) for macOS x86_64 cross-builds." >&2
+ curl -sSfL https://sh.rustup.rs -o /tmp/rustup-init.sh
+ sh /tmp/rustup-init.sh -y --profile minimal --default-toolchain stable
+ rm -f /tmp/rustup-init.sh
+fi
+
+if [[ -d "${HOME}/.cargo/bin" ]]; then
+ if [[ -n "${GITHUB_PATH:-}" ]]; then
+ echo "${HOME}/.cargo/bin" >> "${GITHUB_PATH}"
+ else
+ export PATH="${HOME}/.cargo/bin:${PATH}"
+ fi
+fi
+if [[ -f "${HOME}/.cargo/env" ]]; then
+ # shellcheck disable=SC1091
+ source "${HOME}/.cargo/env"
+fi
+
+rustup target add x86_64-apple-darwin
+rustup show


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────